License Management

Fixed Reader supports the licensed features (For example FXConnect, NetworkConnect) to make ease of software development and integration faster. The following APIs are supported to manage the License in rm.Licensing class

  1. AcquireLicenseOnLine - This API acquires License from given URL and activation ID. This API also installs the Licensed feature using installApp parameter

String serverURL, activationID;

boolean installApp;

serverURL = "https://zebra-licensing.flexnetoperations.com/flexnet/deviceservices";

activationID = "8c88-d0e7-9f3c-435b-968b-69a8-7f8e-a302";

installApp = false;

rm.Licensing.AcquireOnline(serverURL, activationID, installApp);

  1. AcquireLicenseOffLine– Acquires License via license bin file. This API also installs the licensed feature using installApp parameter.

boolean installApp = false;

String binFilePath = "C:\\license\\FX9600_84_24_8D_FB_6C_1A.bin";

rm.Licensing.AcquireOffline(binFilePath, installApp);

  1. Return – Returns the License. This API requires parameters License Server URL, activation ID.

String serverURL, activationID;

serverURL = "https://zebra-licensing.flexnetoperations.com/flexnet/deviceservices";

activationID = "8c88-d0e7-9f3c-435b-968b-69a8-7f8e-a302";

rm.Licensing.Return(serverURL, activationID);

  1. AvailableLicenses – Gets the list of available licenses in the reader. This API returns the array of LicenseInfo

LicenseInfo[] licenseList = rm.Licensing.AvailableLicenses();

if (licenseList != null && licenseList.length > 0)

{

    System.out.println("License(s) found::");

    for (int index = 0; index < licenseList.length; index++)

    {

        LicenseInfo licenseObj = licenseList[index];

        System.out.println(licenseObj.getName() + " version: " + licenseObj.getVersion() + " host ID: " + licenseObj.getHostID() + " expiring on: " + licenseObj.getExpiryDate());

    }

}

else

    System.out.println("No Licenses installed.");